﻿using System.Security.Cryptography;
using System.Text;

namespace Beeflys.Generator
{
    static class Md5Util
    {
        public static string Build(string str)
        {
            var m5 = MD5.Create();
            byte[] inputBye = Encoding.UTF8.GetBytes(str);
            byte[]  outputBye = m5.ComputeHash(inputBye);
            m5.Clear();
            return System.BitConverter.ToString(outputBye).Replace("-", "").ToUpper();
        }
    }
}
